package com.zznj.xzjc.adapter.index;

import android.widget.TextView;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.zznj.xzjc.R;
import com.zznj.xzjc.bean.FuJianBean;

import java.util.List;

/**
 * 描述：添加类的描述
 *
 * @author wx5e48d604c2885118
 * @time 2020/4/7
 */
public class FuJianAdapter extends BaseQuickAdapter<FuJianBean, BaseViewHolder> {

    public FuJianAdapter(int layoutResId, @Nullable List<FuJianBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, FuJianBean item) {
        helper.addOnClickListener(R.id.delBtn);
        helper.addOnClickListener(R.id.fuJianName);

        TextView fuJianName = helper.getView(R.id.fuJianName);
        fuJianName.setText(item.getName());
    }
}
